package com.jblog.user.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class User implements Serializable{
	
	
	private static final long serialVersionUID = -3814435305124221622L;
	
	private String id;
	private String username;
	private String password;
	private String email;
	private String nickname;
	private String phone;
	private Date regTime;
	private Integer status = 0;

	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	@Column(name = "username", unique = true, nullable = false, length = 32)
	public String getUsername() {
		return username;
	}

	@Column(name = "password", nullable=false, length = 32)
	public String getPassword() {
		return password;
	}

	@Column(name = "email",length = 256)
	public String getEmail() {
		return email;
	}

	@Column(name = "phone",length = 32)
	public String getPhone() {
		return phone;
	}

	
	@Column(name = "nickname", length = 32)
	public String getNickname() {
		return nickname;
	}
	
	@Column(name = "reg_time")
	public Date getRegTime() {
		return regTime;
	}
	
	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}


	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}

	

	public void setStatus(Integer status) {
		this.status = status;
	}
	

}
